<?php

/*
	info: 是否校验验证码
*/

define('IS_MEMBER_CHECK', TRUE);
require '../common.inc.php';

$webglobal['CPP']['id'] = api_GetTopActivityID();

$return['code'] = 0;
$return['data']['ischeckcode'] = false;
$webglobal['codeinfo'] = $db->GetOne("SELECT * FROM promotion_user WHERE pid='{$webglobal['CPP']['id']}' AND uid='{$user['m_uid']}'");
if (!empty($webglobal['codeinfo']))
{
	$return['data']['ischeckcode'] = true;
}
api_EchoReturn();
